package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 题库
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-29
 */
@Getter
@Setter
@Schema(name = "Topiclibrary", description = "题库")
public class Topiclibrary implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "题库id")
    @TableId(value = "topic_library_id", type = IdType.AUTO)
    private Integer topicLibraryId;

    @Schema(description = "题库名称")
    private String topicLibraryName;

    @Schema(description = "题库类型")
    private Integer topicLibraryType;

    @Schema(description = "横向封面（banner图）")
    private String topicLibraryBanner;

    @Schema(description = "通过次数")
    private Integer passCount;

    @Schema(description = "答题次数")
    private Integer submitCount;

    @Schema(description = "小型标题")
    private String topicLibraryMinTitle;

    @Schema(description = "题库描述")
    private String topicDescribe;

    @Schema(description = "题库封面")
    private String topicLibraryImg;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Byte tip;
}
